package com.glory.cqaospda.viewmodel

import com.glory.cqaospda.model.TaskRepository
import com.glory.mvvmnet.base.BaseViewModel
import com.glory.mvvmnet.entity.CallObserveBean
import com.google.gson.JsonObject

class Inspect2Model:BaseViewModel() {

    private val repository by lazy { TaskRepository() }

    fun defaultProcessCheck(map:JsonObject){

        launchOnlyResult({
            val processCheckBean =
                repository.defaultProcessCheck(map,"EMS_ProcessCheck")
            defUI.callObserve.value = CallObserveBean(1,processCheckBean)
        })
    }
}